﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BluePortal.Framework;
using System.ServiceModel;
using BluePortal.Medias.Core;

namespace BluePortal.Medias.Services.Soap
{
    [ServiceContract(Namespace = "BluePortal.Medias.Services.Soap")]
    public interface ICommentService
    {
    }

    public class CommentService : ICommentService
    {
        private BCComment service = new BCComment();

        #region ICommentService Members

        public FindResult<Comment> FindByVideo(Guid videoID, FindParameters f)
        {
            return service.FindByMedia(videoID, f);
        }

        public void Create(Comment item)
        {
            service.Create(item);
        }

        public void Delete(Comment item)
        {
            service.Delete(item);
        }

        public void Update(Comment item)
        {
            service.Update(item);
        }

        public Comment FindByID(Guid id)
        {
            return service.FindByID(id);
        }

        #endregion
    }
}
